Chapter 2 miscellaneous exercise